<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改顾客信息</title>
<script type="text/javascript">
	var base = "${base}/";
</script>	
<!--框架必需-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery-1.7.1.js"></script>
<script type="text/javascript" src="${base}/scripts/framework.js"></script>
<script type="text/javascript" src="${base}/scripts/area/areaJson.js"></script>
<script type="text/javascript" src="${base}/scripts/area/json2select.min.js"></script>
<link href="${base}/css/import_basic.css" rel="stylesheet" type="text/css" />
<link href="${base}/css/sky/style.css" rel="stylesheet" type="text/css" />
<!--时间控件-->
<script src="${base}/scripts/form/datePicker/WdatePicker.js" type="text/javascript"></script>
<!--表单验证脚本-->
<script type="text/javascript" src="${base}/scripts/plugins/jquery.validate.min.js"></script>
<script type="text/javascript" src="${base}/js/verify-customer-add.js"></script>

</head>
<body>
	<div class="position">
		<div class="center">
			<div class="left">
				<div class="right">
					<span>当前位置：订单管理 >> 修改客户信息</span>
				</div>
			</div>
		</div>
	</div>
	<div class="box1" whiteBg="true">
		<form id="add_customer_form" action="${base}/admin/customer/update.action" method="post" target="frmright">
			<table class="tableStyle" transMode="true">
				<input type="hidden" name="customer.id" id="customer_id" value="${(customer.id)!''}"/>
				<tr>
					<td>客户昵称：</td>
					<td>
						<input type="text"  name="customer.userName" class="text_style" value="${(customer.userName)!''}"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>真实姓名：</td>
					<td>
						<input type="text" name="customer.realName" id="customer.realName" class="text_style" value="${(customer.realName)!''}"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>性别：</td>
					<td>
						<div style="width:120px;">
							<#if customer.gender = 0 >
							<label for="radio-1">男</label>
							<input type="radio" id="radio-1" name="customer.gender" checked value="0"/>
							<label for="radio-2">女</label>
							<input type="radio" id="radio-2" name="customer.gender" value="1"/>
							<#else>
							<label for="radio-1">男</label>
							<input type="radio" id="radio-1" name="customer.gender" value="0"/>
							<label for="radio-2">女</label>
							<input type="radio" id="radio-2" name="customer.gender" checked value="1"/>
							</#if>
						</div>
					</td>
				</tr>
				<tr>
					<td>联系电话：</td>
					<td>
						<input type="text" name="customer.phoneNumber" class="text_style" id="customer.phoneNumber" value="${(customer.phoneNumber)!''}"/>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>手机号码：</td>
					<td>
						<input type="text" name="customer.telephone" class="text_style" id="customer.telephone" value="${(customer.telephone)!''}"/>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>电子邮箱：</td>
					<td>
						<input type="text" name="customer.email" id="customer.email" class="text_style" value="${(customer.email)!''}" />
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>QQ号码：</td>
					<td>
						<input type="text" name="customer.qqNumber" id="customer.qqNumber" class="text_style" value="${(customer.qqNumber)!''}"/>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>阿里旺旺：</td>
					<td>
						<input type="text" name="customer.wangWang" id="customer.wangWang" class="text_style" value="${(customer.wangWang)!''}"/>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>出生日期：</td>
					<td>
						<input type="text" class="date" name="customer.birthDay" class="text_style" value="${(customer.birthDay)!''}"/>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>联系地址：</td>
					<td>
						<span id="selectt"></span>
						<span class="star">*</span>
						<span class="verror"></span>
					</td>
				</tr>
				<tr>
					<td>街道地址：</td>
					<td>
						<input type="text" id="detailAddress" name="detailAddress" class="text_style" style="width: 180px;"/><br/>
						<input type="text" value="${(customer.address)!''}" name="customer.address" id="address" style="width:400px;"/>
					</td>
				</tr>
				<tr>
					<td>客户习惯：</td>
					<td>
						<span class="float_left">
							<textarea name="customer.habit"  class="textarea_style">${(customer.habit)!''}</textarea>
						</span>
						<span class="img_light" style="height: 80px;" title="限制在200字以内"></span>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<input type="submit" class="button" value=" 提 交 " />
						<input type="button" class="button" onclick="top.Dialog.close()" value=" 取 消" />
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
<script type="text/javascript" src="${base}/js/join-address.js"></script>
<script>
$(function() {
	$("#selectt").json2select(areaJson);
	$("#detailAddress").blur(function() {
		joinAddress();
	});
});
</script>